package com.example.RuanJianKeShe.Bean;

import java.util.Date;

public class Course {

    private int cno;
    private String cname;
    private int credit;
    private String classId;
    private String capacity;
    private String address;
    private Date createTime;

    public Course(){
        createTime = new Date();
    }

    public Course(String cname, int credit, String classId, String capacity, String address) {

        this.cname = cname;
        this.credit = credit;
        this.classId = classId;
        this.capacity = capacity;
        this.address = address;
        createTime = new Date();
    }

    public int getCno() {
        return cno;
    }

    public void setCno(int cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getCapacity() {
        return capacity;
    }

    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cno='" + cno + '\'' +
                ", cname='" + cname + '\'' +
                ", credit=" + credit +
                ", classId='" + classId + '\'' +
                ", capacity='" + capacity + '\'' +
                ", address='" + address + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
